package com.tj.admin.auth.domain;
import com.tj.admin.auth.enums.AdminStatusEnum;
import com.tj.admin.auth.enums.AdminTypeEnum;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: binary (mr.vencnet@gmail.com)
 * Date: 2017/3/11
 * Time: 上午11:39
 */
public class Admin {
    private Long id;

    private String account;

    private String password;

    private String verifyCode;

    private String mobile;

    private String name;

    private String phone;

    private String productCode;

    private String productCategory;

    private Integer productAuthId;

    private AdminStatusEnum adminStatusEnum;

    private AdminTypeEnum adminTypeEnum;

    private String merchantCode;

    public String getMerchantCode() {
        return merchantCode;
    }

    public Admin setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
        return this;
    }

    private List<Long> roles = new ArrayList<>();

    private String accessToken;

    public String getProductCategory() {
        return productCategory;
    }

    public Admin setProductCategory(String productCategory) {
        this.productCategory = productCategory;
        return this;
    }

    public Admin() {
    }

    public Admin(String account, String verifyCode) {
        this.account = account;
        this.verifyCode = verifyCode;
    }

    public Admin(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public Admin setId(Long id) {
        this.id = id;
        return this;
    }

    public String getAccount() {
        return account;
    }

    public Admin setAccount(String account) {
        this.account = account;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public Admin setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public Admin setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public Admin setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getName() {
        return name;
    }

    public Admin setName(String name) {
        this.name = name;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public Admin setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getProductCode() {
        return productCode;
    }

    public Admin

    setProductCode(String productCode) {
        this.productCode = productCode;
        return this;
    }

    public Integer getProductAuthId() {
        return productAuthId;
    }

    public Admin setProductAuthId(Integer productAuthId) {
        this.productAuthId = productAuthId;
        return this;
    }

    public AdminTypeEnum getAdminTypeEnum() {
        return adminTypeEnum;
    }

    public Admin setAdminTypeEnum(AdminTypeEnum adminTypeEnum) {
        this.adminTypeEnum = adminTypeEnum;
        return this;
    }

    public AdminStatusEnum getAdminStatusEnum() {
        return adminStatusEnum;
    }

    public Admin setAdminStatusEnum(AdminStatusEnum adminStatusEnum) {
        this.adminStatusEnum = adminStatusEnum;
        return this;
    }

    public List<Long> getRoles() {
        return roles;
    }

    public Admin setRoles(List<Long> roles) {
        this.roles = roles;
        return this;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public Admin setAccessToken(String accessToken) {
        this.accessToken = accessToken;
        return this;
    }
}
